
package cn.edu.scau.cmi.hombio.dao;

import cn.edu.scau.cmi.hombio.domain.SalePig;

import java.util.Calendar;
import java.util.Set;

import org.skyway.spring.util.dao.JpaDao;

import org.springframework.dao.DataAccessException;

/**
 * DAO to manage SalePig entities.
 * 
 */
public interface SalePigDAO extends JpaDao<SalePig> {

	/**
	 * JPQL Query - findSalePigById
	 *
	 */
	public SalePig findSalePigById(Integer id) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigById
	 *
	 */
	public SalePig findSalePigById(Integer id, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByPrimaryKey
	 *
	 */
	public SalePig findSalePigByPrimaryKey(Integer id_1) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByPrimaryKey
	 *
	 */
	public SalePig findSalePigByPrimaryKey(Integer id_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findAllSalePigs
	 *
	 */
	public Set<SalePig> findAllSalePigs() throws DataAccessException;

	/**
	 * JPQL Query - findAllSalePigs
	 *
	 */
	public Set<SalePig> findAllSalePigs(int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByMemoContaining
	 *
	 */
	public Set<SalePig> findSalePigByMemoContaining(String memo) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByMemoContaining
	 *
	 */
	public Set<SalePig> findSalePigByMemoContaining(String memo, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByMemo
	 *
	 */
	public Set<SalePig> findSalePigByMemo(String memo_1) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByMemo
	 *
	 */
	public Set<SalePig> findSalePigByMemo(String memo_1, int startResult, int maxRows) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByTime
	 *
	 */
	public Set<SalePig> findSalePigByTime(java.util.Calendar time) throws DataAccessException;

	/**
	 * JPQL Query - findSalePigByTime
	 *
	 */
	public Set<SalePig> findSalePigByTime(Calendar time, int startResult, int maxRows) throws DataAccessException;

}